﻿using Fozzy;
using Fozzy.Family;
using Microsoft.FamilyShowLib;
using System.Collections.Generic;

namespace Microsoft.FamilyShow
{
    class SaveAs                                                    : Dialog
    {
        #region Declarations
            private static System.Type Win                              = typeof(MainWindow)                                ;
        #endregion

        #region Properties
            protected virtual Resource      Resource                { get { return Module.Resources.Instance("DefaultFamilyExtension")      ; } }
        #endregion

        #region Constructeur
            public SaveAs(Directory dir)                            : base(Win, dir)
            {}
            public SaveAs(System.Type type, Directory dir)          : base(Win, dir)
            {}
            
        #endregion

            protected override void Prepare()
            {
                base.Prepare()                                      ;
                //dialog.DefaultExtension = Properties.Resources.DefaultFamilyExtension;
                Value.Extend(Resource)                              ;
            }

            protected override void Default_Parts()
            {
                base.Default_Parts()                                ;
                //dialog.Filter.Add(new FilterEntry(Properties.Resources.JpegFiles, Properties.Resources.JpegExtension));
                //dialog.Filter.Add(new FilterEntry(Properties.Resources.PngFiles, Properties.Resources.PngExtension));
                Add(new V3s())                                      ;
                Add(new All())                                      ;
            }

    }

}
